import request from '../utils/request'

// 获取学生信息
export function getStudentInfo() {
    return request({
        url:'/student/info',
        method:'get'
    })
}


// 保存学生信息 
export function saveStudentInfo(data) {
    return request({
        url:'/student/info',
        method:'post',
        data,
    })
}

// 上传头像
export function uploadAvatar(formData) {
    return request({
        url:'/student/avatar/upload',
        method:'post',
        data:formData,
        headers:{
            'Content-Type':'multipart/form-data'//覆盖默认的json头
        }
    })
} 


// 获取家长绑定状态
export function getParentBindStatus(studentId) {
    return request ({
        url:'/student/parent/bind/status',
        method:'get',
        params:{studentId}
    })
}